<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description" content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords" content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>


<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}
</style>
<!-- 
<script type="text/javascript" src="/u2/inventory/stocktakingDetail/list.js"></script>
 -->
</head>
<body>

	<div class="container-fluid"
		data-ng-controller="stocktakingDetailListCtrl as Model" data-ng-init="load()">
		<div class="row">
			<div class="col-sm-12">
				<nav class="nav">
					<ul class="pagination navbar-left buttonBar">
						<li>
							<div class="btn-group" role="toolbar">
								<shiro:hasPermission name="/inventory/stocktakingDetail/list:create">
								<button type="button" class="btn btn-info " data-ng-click="Model.add()">
									<span class="glyphicon glyphicon-plus"></span> 新建
								</button>
								</shiro:hasPermission>
								<shiro:hasPermission name="/inventory/stocktakingDetail/list:save">
								<button type="button" class="btn btn-default" data-ng-disabled="Model.dataList.currentIndex==null" data-ng-click="Model.edit()">
									<span class="glyphicon glyphicon-edit"></span> 修改
								</button>
								</shiro:hasPermission>
								<shiro:hasPermission name="/inventory/stocktakingDetail/list:delete">
								<button type="button" class="btn btn-default" data-ng-disabled="Model.dataList.currentIndex==null" data-ng-click="Model.remove()">
									<span class="glyphicon glyphicon-trash"></span> 删除
								</button>
								</shiro:hasPermission>
								<shiro:hasPermission name="/inventory/stocktakingDetail/list:query">
								<button type="button" class="btn btn-default" data-ng-click="Model.refresh()">
									<span class="glyphicon glyphicon-refresh"></span> 刷新
								</button>
								</shiro:hasPermission>
								<div ng-if="false">
								<button type="button" class="btn btn-default" data-ng-click="Model.saveTest()">
									<span class="glyphicon glyphicon-refresh"></span> 测试-保存
								</button>
								<button type="button" class="btn btn-default" data-ng-click="Model.editTest()">
									<span class="glyphicon glyphicon-refresh"></span> 测试-修改
								</button>
								</div>
							</div>
						</li>
					</ul>
					<shiro:hasPermission name="/inventory/stocktakingDetail/list:create">
						<query-like data="Model.dataList" place-holder="模糊查询..."></query-like>
					</shiro:hasPermission>


				</nav>

			</div>
		</div>

		<div class="row">
			<div class="col-sm-12">

							<div class="table-responsive">
								<table class="table table-hover table-condensed"
									data-readonly={{Model.dataList.readonly()}}
									style="cellpadding: 0px; cellspacing: 0px;">
									<thead>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>

										<tr>

											<th>#</th>

											<th>单号</th>
											<th>序号</th>
											<th>物料编码</th>
											<th>物料名称</th>
											<th>规格</th>
											<th>仓库编码</th>
											<th hidden="true">仓库名称</th>
											<th>库存地</th>
											<th hidden="true">批号盘点</th>
											<th hidden="true">批号</th>
											<th hidden="true">批号说明</th>
											<th hidden="true">单位</th>
											<th>账面数量</th>
											<th>账面件数</th>
											<th>盘点数量</th>
											<th>盘点件数</th>
											<th>备注</th>
											<th></th>
										</tr>
									</thead>
									<tbody>
										<tr data-ng-class="{true:'active'}[Model.dataList.currentIndex==Model.dataList.rows.indexOf(row)]"
											data-ng-click="Model.dataList.onRowClick(row,$event)"
											data-ng-repeat="row in Model.dataList.rows">
											
											<td style="width: 10px;">
												<span data-ng-show="Model.dataList.currentIndex==Model.dataList.rows.indexOf(row)"
												class="glyphicon glyphicon-hand-right" aria-hidden="true"></span>
												<span data-ng-show="Model.dataList.currentIndex!=Model.dataList.rows.indexOf(row)">{{Model.dataList.rows.indexOf(row)+1}}</span>
											</td>

											<td style="width: 120px;" 
												data-ng-model="row.documentNo.value"><span
												data-ng-bind="row.documentNo.value"></span>
											</td>
											<td style="width: 50px;" 
												data-ng-model="row.serialNo.value"><span
												data-ng-bind="row.serialNo.value"></span>
											</td>

											<td style="width: 100px;" td-input="inputbtn"
												data-ng-model="row.itemNo.value"><span
												data-ng-bind="row.itemNo.value"></span></td>
												
											<td style="width: 150px;" td-input="outputbtn"
												iptclick="Model.grid_itemNoButtonClick()"
												data-ng-model="row.itemName.value"><span
												data-ng-bind="row.itemName.value"></span></td>
											<td style="width: 150px;" td-input="outputbtn"
												data-ng-model="row.itemProperty.value"><span
												data-ng-bind="row.itemProperty.value"></span></td>
												
											<td style="width: 100px;" 
												data-ng-model="row.storageNo.value"><span
												data-ng-bind="row.storageNo.value"></span>
											</td>
											<td style="width: 100px;" hidden="true"
												data-ng-model="row.storageName.value"><span
												data-ng-bind="row.storageName.value"></span>
											</td>
											<td style="width: 200px;" td-input="outputbtn"
												iptclick="Model.grid_floorNoButtonClick()"
												data-ng-model="row.floorNo.value"><span
												data-ng-bind="row.floorNo.value"></span>
											</td>
											<td style="width: 100px;padding: 0px;" hidden="true">
												<input type="checkbox" class="form-control" style="margin:0px;"
													data-ng-model="row.batchFlag.value"
													ng-true-value="1" ng-false-value="0"  
													ng-disabled="true"/>
											</td>
											<td style="width: 100px;" td-input="text" hidden="true"
												data-ng-model="row.batchNo.value"><span
												data-ng-bind="row.batchNo.value"></span></td>
											<td style="width: 200px;" td-input="text" hidden="true"
												data-ng-model="row.batchDescribe.value"><span
												data-ng-bind="row.batchDescribe.value"></span></td>
											<td style="width: 50px;" hidden="true"><span
												data-ng-bind="row.unitName.value"></span></td>
												
											<td style="width: 100px;" td-input="number"
												data-ng-model="row.bookQuantity.value"><span
												data-ng-bind="row.bookQuantity.value"></span></td>
											<td style="width: 100px;" td-input="number"
												data-ng-model="row.bookPackage.value"><span
												data-ng-bind="row.bookPackage.value"></span></td>

											<td style="width: 100px;" td-input="number"
												data-ng-model="row.takeQuantity.value"><span
												data-ng-bind="row.takeQuantity.value"></span></td>
											<td style="width: 100px;" td-input="number"
												data-ng-model="row.takePackage.value"><span
												data-ng-bind="row.takePackage.value"></span></td>
											
											<td style="width: 100px;" td-input="text"
												data-ng-model="row.comments.value"><span
												data-ng-bind="row.comments.value"></span></td>

											<td></td>
										</tr>

									</tbody>
									<tfoot>
										<tr>
											<th colspan="99">
											</th>
										</tr>
									
									</tfoot>

								</table>
							</div>


			</div>

		</div>

		<!-- 分页组件 -->
		<div class="row">
			<div class="col-sm-12">

				<pag-ination data="Model.dataList" first-text="首页"
					previous-text="上一页" next-text="下一页" last-text="末页"></pag-ination>

			</div>
		</div>


	</div>


</body>

</html>

